package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.GroupInvestigationOrderMapper;
import com.ruoyi.yipaiju.domain.GroupInvestigationOrder;
import com.ruoyi.yipaiju.service.IGroupInvestigationOrderService;

/**
 * fo_group_investigation_orderService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class GroupInvestigationOrderServiceImpl implements IGroupInvestigationOrderService 
{
    @Autowired
    private GroupInvestigationOrderMapper groupInvestigationOrderMapper;

    /**
     * 查询fo_group_investigation_order
     * 
     * @param id fo_group_investigation_order主键
     * @return fo_group_investigation_order
     */
    @Override
    public GroupInvestigationOrder selectGroupInvestigationOrderById(Long id)
    {
        return groupInvestigationOrderMapper.selectGroupInvestigationOrderById(id);
    }

    /**
     * 查询fo_group_investigation_order列表
     * 
     * @param groupInvestigationOrder fo_group_investigation_order
     * @return fo_group_investigation_order
     */
    @Override
    public List<GroupInvestigationOrder> selectGroupInvestigationOrderList(GroupInvestigationOrder groupInvestigationOrder)
    {
        return groupInvestigationOrderMapper.selectGroupInvestigationOrderList(groupInvestigationOrder);
    }

    /**
     * 根据业务主键查询一条记录：fo_group_investigation_order
     *
     * @param groupInvestigationOrder fo_group_investigation_order
     * @return fo_group_investigation_order
     */
    @Override
    public GroupInvestigationOrder selectOneGroupInvestigationOrder(GroupInvestigationOrder groupInvestigationOrder)
    {
        return groupInvestigationOrderMapper.selectOneGroupInvestigationOrder(groupInvestigationOrder);
    }

    /**
     * 新增fo_group_investigation_order
     * 
     * @param groupInvestigationOrder fo_group_investigation_order
     * @return 结果
     */
    @Override
    public int insertGroupInvestigationOrder(GroupInvestigationOrder groupInvestigationOrder)
    {
        return groupInvestigationOrderMapper.insertGroupInvestigationOrder(groupInvestigationOrder);
    }

    /**
     * 修改fo_group_investigation_order
     * 
     * @param groupInvestigationOrder fo_group_investigation_order
     * @return 结果
     */
    @Override
    public int updateGroupInvestigationOrder(GroupInvestigationOrder groupInvestigationOrder)
    {
        return groupInvestigationOrderMapper.updateGroupInvestigationOrder(groupInvestigationOrder);
    }

    @Override
    public int updateGroupInvestigationOrderCondition(GroupInvestigationOrder groupInvestigationOrder, GroupInvestigationOrder groupInvestigationOrderCondition)
    {
        return groupInvestigationOrderMapper.updateGroupInvestigationOrderCondition(groupInvestigationOrder, groupInvestigationOrderCondition);
    }

    /**
     * 批量删除fo_group_investigation_order
     * 
     * @param ids 需要删除的fo_group_investigation_order主键
     * @return 结果
     */
    @Override
    public int deleteGroupInvestigationOrderByIds(Long[] ids)
    {
        return groupInvestigationOrderMapper.deleteGroupInvestigationOrderByIds(ids);
    }

    /**
     * 删除fo_group_investigation_order信息
     * 
     * @param id fo_group_investigation_order主键
     * @return 结果
     */
    @Override
    public int deleteGroupInvestigationOrderById(Long id)
    {
        return groupInvestigationOrderMapper.deleteGroupInvestigationOrderById(id);
    }

    /**
     * 条件删除fo_group_investigation_order
     *
     * @param groupInvestigationOrder fo_group_investigation_order
     * @return 结果
     */
    @Override
    public int deleteGroupInvestigationOrderByCondition(GroupInvestigationOrder groupInvestigationOrder)
    {
        return groupInvestigationOrderMapper.deleteGroupInvestigationOrderByCondition(groupInvestigationOrder);
    }

}
